<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>shopping cart</title>
</head>
<body style="text-align: center; margin: 0 auto;">
	<h1>shopping cart</h1>
	${msg}
	<c:if test="${empty carts}">cart is empty<br/></c:if>
	
	<c:if test="${!empty carts}">
	<table style="text-align: center; margin: 0 auto;">
		<thead>
			<tr>
				<td>bookname</td>
				<td>bookNum</td>
			</tr>
		<tbody>
			<c:forEach items="${carts}" var="cs">
				<tr>
					<td>${cs.bookname}</td>
					<td>${cs.booknum}</td>
				</tr>
			</c:forEach>
		</tbody>
		</thead>
	</table>
	</c:if>
	
	<a href="booklist">bookstore</br>
	<a href="clear">clear shopping cart</br>
	<a href="buy">buy
</body>
</html>